
using System;
using System.Collections;

namespace FutureOpen.Core
{
	#region Usr

	/// <summary>
	/// Usr object for NHibernate mapped table 'usr'.
	/// </summary>
	public class Usr
		{
		#region Member Variables
		
		protected int _usr_id;
		protected int _usr_gender;
		protected string _usr_name;
		protected string _usr_email;
		protected string _usr_sch;
		protected int _usr_type;
		protected int _usr_comment; 
		protected int _usr_qa;
		protected int _usr_exp;
		protected short _usr_status;
		protected string _usr_pwd;
		protected string _usr_msg;
		protected string _usr_company;
		protected string _usr_title;
		protected short _usr_index;
		protected short _usr_del;
		protected DateTime _usr_time;
		protected byte[] _usr_pic;
		protected short _usr_grade;
		protected short _usr_degree;
		protected string _usr_deputy;

		#endregion

		#region Constructors

		public Usr() { }

		public Usr( int usr_gender, string usr_name, string usr_email, string usr_sch, int usr_type, int usr_comment, int usr_qa, int usr_exp, short usr_status, string usr_pwd, string usr_msg, string usr_company, string usr_title, short usr_index, short usr_del, DateTime usr_time, byte[] usr_pic, short usr_grade, short usr_degree, string usr_deputy )
		{
			this._usr_gender = usr_gender;
			this._usr_name = usr_name;
			this._usr_email = usr_email;
			this._usr_sch = usr_sch;
			this._usr_type = usr_type;
			this._usr_comment = usr_comment;
			this._usr_qa = usr_qa;
			this._usr_exp = usr_exp;
			this._usr_status = usr_status;
			this._usr_pwd = usr_pwd;
			this._usr_msg = usr_msg;
			this._usr_company = usr_company;
			this._usr_title = usr_title;
			this._usr_index = usr_index;
			this._usr_del = usr_del;
			this._usr_time = usr_time;
			this._usr_pic = usr_pic;
			this._usr_grade = usr_grade;
			this._usr_degree = usr_degree;
			this._usr_deputy = usr_deputy;
		}

		#endregion

		#region Public Properties

        public virtual int Usr_id
		{
			get {return this._usr_id;}
            set { _usr_id = value; }
		}

		public virtual int Usr_gender
		{
			get { return _usr_gender; }
			set { _usr_gender = value; }
		}

		public virtual string Usr_name
		{
			get { return _usr_name; }
			set
			{
				if ( value != null && value.Length > 135)
					throw new ArgumentOutOfRangeException("Invalid value for Usr_name", value, value.ToString());
				_usr_name = value;
			}
		}

		public virtual string Usr_email
		{
			get { return _usr_email; }
			set
			{
				if ( value != null && value.Length > 300)
					throw new ArgumentOutOfRangeException("Invalid value for Usr_email", value, value.ToString());
				_usr_email = value;
			}
		}

		public virtual string Usr_sch
		{
			get { return _usr_sch; }
			set
			{
				if ( value != null && value.Length > 300)
					throw new ArgumentOutOfRangeException("Invalid value for Usr_sch", value, value.ToString());
				_usr_sch = value;
			}
		}

		public virtual int Usr_type
		{
			get { return _usr_type; }
			set { _usr_type = value; }
		}

		public virtual int Usr_comment
		{
			get { return _usr_comment; }
			set { _usr_comment = value; }
		}

		public virtual int Usr_qa
		{
			get { return _usr_qa; }
			set { _usr_qa = value; }
		}

		public virtual int Usr_exp
		{
			get { return _usr_exp; }
			set { _usr_exp = value; }
		}

		public virtual short Usr_status
		{
			get { return _usr_status; }
			set { _usr_status = value; }
		}

		public virtual string Usr_pwd
		{
			get { return _usr_pwd; }
			set
			{
				if ( value != null && value.Length > 135)
					throw new ArgumentOutOfRangeException("Invalid value for Usr_pwd", value, value.ToString());
				_usr_pwd = value;
			}
		}

		public virtual string Usr_msg
		{
			get { return _usr_msg; }
			set
			{
				if ( value != null && value.Length > 600)
					throw new ArgumentOutOfRangeException("Invalid value for Usr_msg", value, value.ToString());
				_usr_msg = value;
			}
		}

		public virtual string Usr_company
		{
			get { return _usr_company; }
			set
			{
				if ( value != null && value.Length > 300)
					throw new ArgumentOutOfRangeException("Invalid value for Usr_company", value, value.ToString());
				_usr_company = value;
			}
		}

		public virtual string Usr_title
		{
			get { return _usr_title; }
			set
			{
				if ( value != null && value.Length > 300)
					throw new ArgumentOutOfRangeException("Invalid value for Usr_title", value, value.ToString());
				_usr_title = value;
			}
		}

		public virtual short Usr_index
		{
			get { return _usr_index; }
			set { _usr_index = value; }
		}

		public virtual short Usr_del
		{
			get { return _usr_del; }
			set { _usr_del = value; }
		}

		public virtual DateTime Usr_time
		{
			get { return _usr_time; }
			set { _usr_time = value; }
		}

		public virtual byte[] Usr_pic
		{
			get { return _usr_pic; }
			set { _usr_pic = value; }
		}

		public virtual short Usr_grade
		{
			get { return _usr_grade; }
			set { _usr_grade = value; }
		}

		public virtual short Usr_degree
		{
			get { return _usr_degree; }
			set { _usr_degree = value; }
		}

		public virtual string Usr_deputy
		{
			get { return _usr_deputy; }
			set
			{
				if ( value != null && value.Length > 240)
					throw new ArgumentOutOfRangeException("Invalid value for Usr_deputy", value, value.ToString());
				_usr_deputy = value;
			}
		}

        
		#endregion
		
        
	}

	#endregion
}
